//
//  LKEmployerListCell.m
//  Mideleague_Shop
//
//  Created by Zhiwang on 2020/6/10.
//  Copyright © 2020 Zhiwang. All rights reserved.
//

#import "LKEmployerListCell.h"


@interface LKEmployerListCell()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *roleNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *IdLabel;
@property (weak, nonatomic) IBOutlet UILabel *userPhoneLabel;

@end



@implementation LKEmployerListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self setSpecialCorial:self.StatusLabel];
    // Initialization code
}

-(void)setModel:(LKAccountModel *)model{
    self.userPhoneLabel.text = model.user_phone;
    self.nameLabel.text = model.user_name;
    self.IdLabel.text = model.Id;
    self.roleNameLabel.text = model.role_name;
}

-(void)setSpecialCorial:(UIView *)view2{
    UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:view2.bounds byRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(10, 10)];
    CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
    maskLayer.frame = view2.bounds;
    maskLayer.path = maskPath.CGPath;
    view2.layer.mask = maskLayer;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
